import java.util.Scanner;

public class demo1 {
    public static void main(String[] args) {

         sum(10);
        System.out.println(sum(10));
    }
    public static int sum(int x){
        if(x==1){
            return 1;
        }
        return x+sum(x-1);
    }
}
